﻿using System.Xml.Serialization;

namespace NaverOpenApiLibrary.Models
{
    [XmlRoot("rss")]
    public class Blog
    {
        [XmlElement("channel")]
        public BlogChannel Channel;
    }

    public class BlogChannel
    {
        [XmlElement("title")]
        public string Title;

        [XmlElement("link")]
        public string Link;

        [XmlElement("description")]
        public string Description;

        [XmlElement("lastBuildDate")]
        public string LastBuildDate;

        [XmlElement("total")]
        public string Total;

        [XmlElement("start")]
        public string Start;

        [XmlElement("display")]
        public string Display;

        [XmlElement("item")]
        public BlogItem[] Items;
    }

    public class BlogItem
    {
        [XmlElement("title")]
        public string Title;

        [XmlElement("link")]
        public string Link;

        [XmlElement("description")]
        public string Description;

        [XmlElement("bloggername")]
        public string BloggerName;

        [XmlElement("bloggerlink")]
        public string BloggerLink; 
    }
}
